Creating ListView DBE

Am I doing something wrong in creating the DBE listView with multiSelectOptions?

string configs[] = {"All", "Red", "Orange", "Yellow", "Green", "Blue"}

DB mainWin = create("Configuration", styleStandard|styleCentered|styleFloating|styleFixed)

DBE configList = listView(mainWin, listViewOptionMultiselect, 400, 10, configs)

show mainWin

It keeps displaying an empty DB. I don't want to use the multiList DBE because I want to be able to use the function selectedElems to get the number of elements selected. This is for catching errors in case no element or choice is selected, in which i can't do that for the DBE multiList. Any suggestions?
phan423 - Tue Mar 20 14:59:17 EDT 2012

Re: Creating ListView DBE
SystemAdmin - Wed Mar 21 06:10:53 EDT 2012

You need to insert column definition there:

string configs[] = {"All", "Red", "Orange", "Yellow", "Green", "Blue"}
DB mainWin = create("Configuration", styleStandard|styleCentered|styleFloating|styleFixed)
DBE configList = listView(mainWin, listViewOptionMultiselect, 400, 10, configs)
realize mainWin
insertColumn(configList, 1, "Colors", 100, iconNone) 
show mainWin

Re: Creating ListView DBE
phan423 - Wed Mar 21 19:42:32 EDT 2012

Thanks, got it to work